package tech.yunland.shop.web;

import com.moyuer.bsf.web.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import tech.yunland.activity.domain.imodel.BaseModel;
import tech.yunland.activity.domain.services.IWorkflowService;

/**
 * @author 文卡<wkwenka@gmail.com>  on 17-3-30.
 */
@RestController
public class BillTaskController extends BaseController {

    @Autowired
    private IWorkflowService<BaseModel> workflowService;

    @RequestMapping(value = "/task/{id}", method = RequestMethod.GET)
    public BaseModel getByTaseId(@PathVariable String id) {

        BaseModel baseModel = workflowService.findLeaveBillByTaskId(id);

        return baseModel;
    }


}
